<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" href="/css/bootstrap.min.css">
	<script src="/js/bootstrap.min.js"></script>
	<title>Document</title>
	<style>
		#app {
			display: flex;
			align-items: center;
			justify-content: end;
			min-height: 100vh;
			background: url('./images/bg.png') no-repeat;
			background-size: cover;
		}
		form {
			width: 600px;
			margin: 100px;
			background-color: #fff;
			padding: 20px;
			opacity: .85;
			box-shadow: 0 0 10px #ddd;
			border-radius: 4px;
		}
	</style>
</head>
<body id="app">
  <form action="/Register">
	  <div class="form-group row">
		  <label for="id" class="col-sm-2 col-form-label">用户工号</label>
		  <div class="col-sm-10">
			  <input type="text" name="id" class="form-control" id="id" required>
		  </div>
	  </div>
		<!-- 用户名 -->
		<div class="form-group row">
			<label for="username" class="col-sm-2 col-form-label">用户名称</label>
			<div class="col-sm-10">
				<input type="text" name="username" class="form-control" id="username" required>
			</div>
		</div>
		<!-- 密码 -->
		<div class="form-group row">
			<label for="userpassword" class="col-sm-2 col-form-label">用户密码</label>
			<div class="col-sm-10">
				<input type="password" name="userpassword" class="form-control" id="userpassword" required>
			</div>
		</div>
		<!-- 用户性别 -->
		<fieldset class="form-group row">
			<legend class="col-form-label col-sm-2 float-sm-left pt-0">用户性别</legend>
			<div class="col-sm-10">
				<div class="form-check">
					<input class="form-check-input" type="radio" name="gender" id="gendertype1" value="1" checked>
					<label class="form-check-label" for="gendertype1">
						男
					</label>
				</div>
				<div class="form-check">
					<input class="form-check-input" type="radio" name="gender" id="gendertype2" value="2">
					<label class="form-check-label" for="gendertype2">
						女
					</label>
				</div>
			</div>
		</fieldset>
		<!-- 出生日期 -->
		<div class="form-group row">
			<label for="birthday" class="col-sm-2 col-form-label">出生日期</label>
			<div class="col-sm-10">
				<input type="date" name="birthday" class="form-control" id="birthday" required>
			</div>
		</div>
		<!-- 用户电话 -->
		<div class="form-group row">
			<label for="phone" class="col-sm-2 col-form-label">用户电话</label>
			<div class="col-sm-10">
				<input type="tel" name="phone" class="form-control" id="phone" required>
			</div>
		</div>
		<!-- 用户地址 -->
		<div class="form-group row">
			<label for="address" class="col-sm-2 col-form-label">用户地址</label>
			<div class="col-sm-10">
				<input type="text" name="address" class="form-control" id="address" required>
			</div>
		</div>
		<!-- 用户类别 -->
		<fieldset class="form-group row">
			<legend class="col-form-label col-sm-2 float-sm-left pt-0">用户类别</legend>
			<div class="col-sm-10">
				<div class="form-check">
					<input class="form-check-input" type="radio" name="userrole" id="role1" value="1" checked>
					<label class="form-check-label" for="role1">
						管理员
					</label>
				</div>
				<div class="form-check">
					<input class="form-check-input" type="radio" name="userrole" id="role2" value="2">
					<label class="form-check-label" for="role2">
						经理
					</label>
				</div>
				<div class="form-check">
					<input class="form-check-input" type="radio" name="userrole" id="role3" value="3">
					<label class="form-check-label" for="role3">
						普通用户
					</label>
				</div>
			</div>
		</fieldset>
		<!-- 注册按钮 -->
		<div class="form-group row">
			<div class="col-sm-10"></div>
			<div class="col-sm-2">
				<input type="submit" class="btn btn-primary" value="注册">
			</div>
		</div>
	</form>
</body>
</html>